import 'dart:convert';
import 'package:flutter_app/generated/json/base/json_field.dart';
import 'package:flutter_app/generated/json/list_problem_type_entity.g.dart';

@JsonSerializable()
class ListProblemTypeEntity {

	String? code;
	String? name;
	String? id;
	String? pid;
	List<ListProblemTypeChildTypeList>? childTypeList;
  
  ListProblemTypeEntity();

  factory ListProblemTypeEntity.fromJson(Map<String, dynamic> json) => $ListProblemTypeEntityFromJson(json);

  Map<String, dynamic> toJson() => $ListProblemTypeEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ListProblemTypeChildTypeList {

	String? code;
	String? name;
	String? id;
	String? pid;
  
  ListProblemTypeChildTypeList();

  factory ListProblemTypeChildTypeList.fromJson(Map<String, dynamic> json) => $ListProblemTypeChildTypeListFromJson(json);

  Map<String, dynamic> toJson() => $ListProblemTypeChildTypeListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}